<?php
require_model('base.class');
class department extends base {
    private $table = 'Departments';
    private $primary = 'DepartmentId';
    function __construct() {
        parent::__construct($this->table,$this->primary);
    }
    function CreateDepartment($params) {
        return $this->insert_item($params);
    }
    function UpdateDepartment($params, $where) {
        return $this->update_item($params, $where);
    }
}